{include file="public/toper"/}
<style>
    .table_td {text-align: center;}
    .table_p {height: 20px;}
</style>
<div class="x-body">
    <table class="layui-table">
        <tr>订单信息</tr> <a style="float: right;" href="#" onclick="history.go(-1);" class="layui-btn layui-btn-primary "><i class="aicon ai-fanhui iconfont">&#xe697;</i>返回</a>
        <tr>
            <td>订单号</td>
            <td>下单人</td>
            <td>下单人电话</td>
            <td>收货人</td>
            <td>收货电话</td>
            <td>收货地址</td>
            <td>下单时间</td>
            {if condition="$list['pay_time'] neq ''"}
            <td>支付时间</td>
            {/if}
            {if condition="$list['shipping_time'] neq ''"}
            <td>发货时间</td>
            {/if}
            {if condition="$list['confirm_time'] neq ''"}
            <td>完成时间</td>
            {/if}
            <td>订单状态</td>
            <td>订单类型</td>
        </tr>
        <tr>
            <td>{$list['order_sn']}</td>
            <td>{$list['user_name']}</td>
            <td>{$list['user_phone']}</td>
            <td>{$list['name']}</td>

            <td>{$list['phone']}</td>
            <td>{$list['consignee']}</td>

            <td>{$list['add_time']}</td>
            {if condition="$list['pay_time'] neq ''"}
            <td>{$list['pay_time']|date="Y-m-d H:i:s",###}</td>
            {/if}

            {if condition="$list['shipping_time'] neq ''"}
            <td>{$list['shipping_time']|date="Y-m-d H:i:s",###}</td>
            {/if}

            {if condition="$list['confirm_time'] neq ''"}
            <td>{$list['confirm_time']|date="Y-m-d H:i:s",###}</td>
            {/if}

            <td>{if condition="$list['order_status'] eq 0"} 未支付  {elseif condition="$list['order_status'] eq 1"/} 已支付  {elseif  condition="$list['order_status'] eq 2"/}已发货  {elseif  condition="$list['order_status'] eq 3"/}已完成  {elseif  condition="$list['order_status'] eq 4"/}已取消{/if}</td>
            <td>{if condition="$list['order_type'] eq 1"} 快递  {elseif  condition="$list['order_type'] eq 2"/} 自提{/if}</td>
        </tr>
    </table>
    {if condition="$list['order_type'] eq 1"}
    <p class="table_p"></p>
    <table class="layui-table">
        <tr>快递信息</tr>
        <tr>
            <td>快递单号</td>
            <td>快递名称</td>
        </tr>
        <tr>
            {if condition="$list['numbers'] eq ''"} <td>无</td>  {else /} <td>{$list['numbers']}</td>{/if}
            {if condition="$list['shipping_name'] eq ''"} <td>无</td>  {else /} <td>{$list['shipping_name']}</td>{/if}
        </tr>
    </table>
    {/if}

    {if condition="$order_pay['pay_channel'] neq ''"}
    <p class="table_p"></p>
    <table class="layui-table">
        <tr>支付信息</tr>
        <tr>
            <td>订单类型</td>
            <td>支付渠道</td>
            <td>交易码</td>
            <td>时间</td>
            <td>处理方式</td>
            <td>金额</td>
        </tr>
        <tr>
            <td>{if condition="$order_pay['type'] eq 0"} 购买订单  {elseif condition="$order_pay['type'] eq 1"/} 共享订单  {elseif  condition="$order_pay['type'] eq 2"/}订制订单{/if}</td>

            <td>{$order_pay['pay_channel']}</td>
            <td>{$order_pay['pay_code']}</td>
            <td>{$order_pay['time']|date="Y-m-d H:i:s",###}</td>
            {if condition="$order_pay['pay_mode'] eq 1"} <td>人工</td>  {else /} <td>系统</td>{/if}
            <td>{$order_pay['pay_price']}</td>
        </tr>

    </table>
    {/if}
    <p class="table_p"></p>
    <table class="layui-table">
        <tr>商品信息</tr>
        <tr>
            <td>名称</td>
            <td>价格</td>
            <td>数量</td>
            <td>规格</td>
            <td>条形码</td>
        </tr>
        {volist name="list['goods']" id="vo"}
        <tr>
            <td>{$vo['goods_name']}</td>
            <td>{$vo['goods_price']}</td>
            <td>{$vo['goods_number']}</td>


            {if condition="$list['spec_item_key'] eq ''"}
            <td>无</td>
            {else/}
            <td>{$vo['spec_item_key']}</td>
            {/if}
            <td>{$vo['code']}</td>
        </tr>
        {/volist}
    </table>
    <p class="table_p"></p>
    <p>商品总价：￥{$list['goods_price']}</p>
    <p>支付价格：￥{$list['pay_price']}</p>
</div>
{include file="public/footer"/}